<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D球体旋转效果</title>
    <style>
        body {
            margin: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #000;
            overflow: hidden;
            perspective: 1000px;
        }
        
        .scene {
            position: relative;
            width: 300px;
            height: 300px;
            transform-style: preserve-3d;
        }
        
        .sphere {
            position: absolute;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            animation: rotate 20s infinite linear;
        }
        
        .center-ball {
            position: absolute;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle at 30% 30%, #fff, #4fc3f7);
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate3d(-50%, -50%, 0);
            box-shadow: 0 0 30px #4fc3f7;
        }
        
        .orbiting-element {
            position: absolute;
            width: 30px;
            height: 30px;
            background: #ff4081;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform-origin: 0 0;
            box-shadow: 0 0 10px #ff4081;
        }
        
        @keyframes rotate {
            0% { transform: rotateY(0) rotateX(0); }
            100% { transform: rotateY(360deg) rotateX(360deg); }
        }
    </style>
</head>
<body>
    <div class="scene">
        <div class="sphere">
            <div class="center-ball"></div>
            <!-- 轨道元素将通过JS动态添加 -->
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>